<?php
/**
 * @file wapinfohistory.php
 * @author zhouzhe@haibao.com
 * @date 2015-6-9
 */
namespace haibao\cms\business;

class WapInfoHistory extends Base{
	public static function getWapInfoHistoryList($wapInfoHistoryFilter){
		$data = new \haibao\cms\data\WapInfoHistory();
		return $data->getAll($wapInfoHistoryFilter);
	}
	/**
	 * @param $int $id
	 */
	public static function getWapInfoHistoryById($id){
		if(!$id){
			throw new BusinessException('文章历史id不能为空',self::DATA_EMPTY_ID);
		}
		$data = new \haibao\cms\data\WapInfoHistory();
		return $data->getOneById($id);
	}
}